//
//  BCWebView.h
//  BCRouteKit
//
//  Created by chun.chen on 2019/12/16.
//  webview

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface BCWebView : UIView

/// url地址
@property (nonatomic, strong, nullable) NSString *url;
/// 加载的本地html 内容
@property (nonatomic, strong, nullable) NSString *localHtmlString;
///webView
@property (nonatomic, strong) WKWebView *webView;
/// HTTPHeader
@property (nonatomic, strong, nullable) NSDictionary<NSString*, NSString*> *headers;

/// 是否显示系统ActivityIndicatorView，默认 false,不显示
@property (nonatomic, assign) BOOL showIndicator;
/// 是否可以滑动
@property (nonatomic, assign) BOOL scrollEnabled;
/// 是否自适应高度 默认:NO 在具体页面处理
@property (nonatomic, assign) BOOL autoHeight;

/// 清除缓存
- (void)cleanWebView;

/// 在web加载完成后获取html高估回调
/// @param complete complete description
- (void)setHtmlHeightComplete:(void(^_Nullable)(CGFloat height))complete;
                               

@end

NS_ASSUME_NONNULL_END
